package com.example.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.to.SeckillOrderTo;
import com.example.common.utils.PageUtils;
import com.example.gulimall.order.entity.OrderEntity;
import com.example.gulimall.order.vo.*;

import java.util.Map;

/**
 * 订单
 *
 * @author xiaoming
 * @email 434216555@qq.com
 * @date 2021-06-21 20:28:06
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo submitVo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PayVo getOrderPayVo(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    void handlerPayResult(PayAsyncVo vo);

    void createSeckillOrder(SeckillOrderTo orderTo);
}

